package com.ptswitch.material.service;

import java.util.Collection;
import java.util.List;

import com.ptswitch.material.model.contract.ContractItem;

public interface ContractItemService {

    List<ContractItem> findByExamine(long id, boolean pass);

    List<ContractItem> findByReceiving(long id, boolean receiving);

    List<ContractItem> findByReturn(long id);

    List<ContractItem> findByContract(long id);

    boolean existContractItemCode(ContractItem item);

    String emptyCode(String code);

    void save(ContractItem item);

    void saveAll(Collection<ContractItem> items);

    ContractItem findById(long id);

    void delete(ContractItem item);
}
